<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="strings.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ref.strings.html">字符串 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.strings.html">字符串</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="string.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.crypt-salt-length">
    <strong><code>CRYPT_SALT_LENGTH</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.crypt-std-des">
    <strong><code>CRYPT_STD_DES</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">
     表示 <span class="function"><a href="function.crypt.html" class="function">crypt()</a></span> 是否支持基于 DES 的标准散列。始终是 <code class="literal">1</code>。
    </span>
   </dd>

  
  
   <dt id="constant.crypt-ext-des">
    <strong><code>CRYPT_EXT_DES</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">
     表示 <span class="function"><a href="function.crypt.html" class="function">crypt()</a></span> 是否支持基于 DES 的扩展散列。始终是 <code class="literal">1</code>。
    </span>
   </dd>

  
  
   <dt id="constant.crypt-md5">
    <strong><code>CRYPT_MD5</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">
     表示 <span class="function"><a href="function.crypt.html" class="function">crypt()</a></span> 是否支持 MD5 散列。始终是 <code class="literal">1</code>。
    </span>
   </dd>

  
  
   <dt id="constant.crypt-blowfish">
    <strong><code>CRYPT_BLOWFISH</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">
     表示 <span class="function"><a href="function.crypt.html" class="function">crypt()</a></span> 是否支持 Blowfish 散列。始终是 <code class="literal">1</code>。
    </span>
   </dd>

  
  
   <dt id="constant.crypt-sha256">
    <strong><code>CRYPT_SHA256</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">
     表示 <span class="function"><a href="function.crypt.html" class="function">crypt()</a></span> 是否支持 SHA-256 散列。始终是 <code class="literal">1</code>。
    </span>
   </dd>

  
  
   <dt id="constant.crypt-sha512">
    <strong><code>CRYPT_SHA512</code></strong>
     <span class="type">int</span>
   </dt>

   <dd>

    <span class="simpara">
     表示 <span class="function"><a href="function.crypt.html" class="function">crypt()</a></span> 是否支持 SHA-512 散列。始终是 <code class="literal">1</code>。
    </span>
   </dd>

  
   
   <dt id="constant.html-specialchars">
    <strong><code>HTML_SPECIALCHARS</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.html-entities">
    <strong><code>HTML_ENTITIES</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-compat">
    <strong><code>ENT_COMPAT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-quotes">
    <strong><code>ENT_QUOTES</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-noquotes">
    <strong><code>ENT_NOQUOTES</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-ignore">
    <strong><code>ENT_IGNORE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-substitute">
    <strong><code>ENT_SUBSTITUTE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-disallowed">
    <strong><code>ENT_DISALLOWED</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-html401">
    <strong><code>ENT_HTML401</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-xml1">
    <strong><code>ENT_XML1</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-xhtml">
    <strong><code>ENT_XHTML</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ent-html5">
    <strong><code>ENT_HTML5</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.char-max">
    <strong><code>CHAR_MAX</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-ctype">
    <strong><code>LC_CTYPE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-numeric">
    <strong><code>LC_NUMERIC</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-time">
    <strong><code>LC_TIME</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-collate">
    <strong><code>LC_COLLATE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-monetary">
    <strong><code>LC_MONETARY</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-all">
    <strong><code>LC_ALL</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.lc-messages">
    <strong><code>LC_MESSAGES</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.str-pad-left">
    <strong><code>STR_PAD_LEFT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.str-pad-right">
    <strong><code>STR_PAD_RIGHT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.str-pad-both">
    <strong><code>STR_PAD_BOTH</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>

</div>
</div></div></body></html>